package schema;
public abstract class Column {
   private String name;
   private String desc;
   private boolean isNecessary;
   private boolean isPrimary;

   public Column(String n, String d) {
      this(n, d, false, false);
   }

   public Column(String n, String d, boolean e, boolean p) {
      name = n;
      desc = d;
      isNecessary = e;
      isPrimary = p;
   }

   public abstract String getSqlType();

   public String getName() {
      return name;
   }

   public String getDesc() {
      return desc;
   }

   public boolean isNecessary() {
      return isNecessary;
   }

   public boolean isPrimary() {
      return isPrimary;
   }
}
